<template>
  <tr>
    <td>{{ date }}</td>
    <td>{{ uname }}</td>
    <td>{{ ensue }}</td>
    <td>{{ recipe }}</td>
    <td @click="fn">详情</td>
  </tr>
</template>

<script>
export default {
  name: 'MyPatient',
  props: ['date', 'uname', 'ensue', 'recipe'],
  components: {},
  data() {
    return {};
  },
  methods: {
    fn() {
      alert(1);
    },
  },
};
</script>

<style lang="less">
.my-table {
  border-collapse: collapse;
  width: 100%;
}

.my-table td,
.my-table th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.my-table th {
  background-color: #f2f2f2;
}
</style>
